package org.loofer.ext.utils;

import java.util.List;

public final class ListUtils {
    public static boolean isEmpty(List list) {
        return list == null || list.size() == 0;
    }

    public static boolean isNotEmpty(List list) {
        return !isEmpty(list);
    }

    public static boolean equal(List one, List other) {
        if (one != null && other != null && one.size() == other.size() && one.containsAll(other) && other.containsAll(one)) {
            return true;
        }
        return false;
    }
}
